home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 8 / Mac Magazin and MacEasy Magazine CD - Issue 08.iso / Sharewarebibliothek / Updater⁄Infos / Frontier 2.0 => 2.0.1 Upgrader / Install Files / DocServer Docs / clock.sleepFor < prev    next >
Text File  |  1993-02-25  |  1KB  |  17 lines

  1.  
  2. Verb    clock.sleepFor
  3. Syntax    clock.sleepFor (number)
  4. Parameters    number is the number of seconds for which you wish to pause a background operation.
  5. Action    Sets the number of seconds that should elapse before the background (agent) script should be called again.
  6. Returns    True
  7. Examples    Create a new script in system.agents called “Annoyance.” Enter the following two lines:
  8.     speaker.beep ();
  9.     clock.sleepFor (10)
  10. Then click the Compile button. The agent causes a speaker beep every 10 seconds. To get rid of this little annoyance, just cut the script.
  11. Errors    This verb will generate an error if called from a script that is not running as an agent.
  12. Notes    • This verb does not immediately cause the agent script to pause execution. Sleeping begins when the script returns control to the system.
  13. • In the context of this verb, the itemhit callback script of a modeless dialog is considered to be an agent. Calling clock.sleepFor from a modeless dialog itemhit script will cause it to be called with a special itemhit value of -3 if the specified period elapses before the user clicks on an item.
  14. See Also    clock.waitSeconds
  15. clock.waitSixtieths
  16. dialog.runModeless
  17.